package com.cloudshop.service.user.entity;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * user 实体类.
 *
 * @author 宫新程
 * @since 2019/4/1 14:04
 */
@Entity
@Table(name = "users")
public class Users {

  private Integer id;
  private String userName;
  private String password;
  private String nickName;
  private String name;
  private String headPic;
  private String sex;
  private String phone;
  private String email;
  private Date birthday;
  private String qq;
  private String sourceType;
  private String status;
  private BigDecimal accountBalance;
  private String isMobileCheck;
  private String isEmailCheck;
  private Integer userLevel;
  private Integer points;
  private Integer experienceValue;
  private Date createTime;
  private Date updateTime;
  private Date lastLoginTime;

  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @Column(name = "id")
  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  @Basic
  @Column(name = "user_name")
  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }

  @Basic
  @Column(name = "password")
  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  @Basic
  @Column(name = "nick_name")
  public String getNickName() {
    return nickName;
  }

  public void setNickName(String nickName) {
    this.nickName = nickName;
  }

  @Basic
  @Column(name = "name")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  @Basic
  @Column(name = "head_pic")
  public String getHeadPic() {
    return headPic;
  }

  public void setHeadPic(String headPic) {
    this.headPic = headPic;
  }

  @Basic
  @Column(name = "sex")
  public String getSex() {
    return sex;
  }

  public void setSex(String sex) {
    this.sex = sex;
  }

  @Basic
  @Column(name = "phone")
  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

  @Basic
  @Column(name = "email")
  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }

  @Basic
  @Column(name = "birthday")
  public Date getBirthday() {
    return birthday;
  }

  public void setBirthday(Date birthday) {
    this.birthday = birthday;
  }

  @Basic
  @Column(name = "qq")
  public String getQq() {
    return qq;
  }

  public void setQq(String qq) {
    this.qq = qq;
  }

  @Basic
  @Column(name = "source_type")
  public String getSourceType() {
    return sourceType;
  }

  public void setSourceType(String sourceType) {
    this.sourceType = sourceType;
  }

  @Basic
  @Column(name = "status")
  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  @Basic
  @Column(name = "account_balance")
  public BigDecimal getAccountBalance() {
    return accountBalance;
  }

  public void setAccountBalance(BigDecimal accountBalance) {
    this.accountBalance = accountBalance;
  }

  @Basic
  @Column(name = "is_mobile_check")
  public String getIsMobileCheck() {
    return isMobileCheck;
  }

  public void setIsMobileCheck(String isMobileCheck) {
    this.isMobileCheck = isMobileCheck;
  }

  @Basic
  @Column(name = "is_email_check")
  public String getIsEmailCheck() {
    return isEmailCheck;
  }

  public void setIsEmailCheck(String isEmailCheck) {
    this.isEmailCheck = isEmailCheck;
  }

  @Basic
  @Column(name = "user_level")
  public Integer getUserLevel() {
    return userLevel;
  }

  public void setUserLevel(Integer userLevel) {
    this.userLevel = userLevel;
  }

  @Basic
  @Column(name = "points")
  public Integer getPoints() {
    return points;
  }

  public void setPoints(Integer points) {
    this.points = points;
  }

  @Basic
  @Column(name = "experience_value")
  public Integer getExperienceValue() {
    return experienceValue;
  }

  public void setExperienceValue(Integer experienceValue) {
    this.experienceValue = experienceValue;
  }

  @Basic
  @Column(name = "create_time")
  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  @Basic
  @Column(name = "update_time")
  public Date getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(Date updateTime) {
    this.updateTime = updateTime;
  }

  @Basic
  @Column(name = "last_login_time")
  public Date getLastLoginTime() {
    return lastLoginTime;
  }

  public void setLastLoginTime(Date lastLoginTime) {
    this.lastLoginTime = lastLoginTime;
  }
}
